package com.czz.common.exception;
import lombok.Getter;

@Getter
public enum ResultCodeEnum {

	SUCCESS(true, 20000,"成功"),
	UNKNOWN_REASON(false, 20001, "未知错误"),
	BAD_SQL_GRAMMAR(false, 21001, "SQL语法错误"),
	JSON_PARSE_ERROR(false, 21002, "JSON解析异常"),
	PARAM_ERROR(false, 21003, "参数不正确"),
	FILE_UPLOAD_ERROR(false, 21004, "文件上传错误"),
	INPUT_ERROR(false,21005,"用户输入错误"),
	MOBILE_EXISTS(false,21006,"手机号已存在"),
	USERNAME_OR_PASSWORD_ERROR(false,21007,"账号密码错误"),
	UNAUTHORIZED(false,21008,"权限不足，请登录系统"),
	NOT_FOUND(false,21009,"没有找到资源"),
	RESOURCE_EXISTS(false,21010,"资源已存在"),
	EXCEL_DATA_IMPORT_ERROR(false,21011,"Excel数据导入错误"),
	VIDEO_UPLOAD_ERROR(false,21012,"视频上传错误"),
	VIDEO_DELETE_ERROR(false,21013,"视频删除错误"),
	VIDEO_PLAYAUTH_ERROR(false,21014,"获取视频播放凭证错误"),
	CREATE_PAY_ERROR(false,21015,"生成支付链接错误"),
	CHECK_RSA_ERROR(false,21016,"检验签名错误"),
	PAY_ERROR(false,21017,"支付失败"),
	SEND_SMS_ERROR(false,21018,"发送验证码错误"),
	USER_BAN(false,21019,"该用户已被禁用"),
	NICKNAME_EXISTS(false,21020,"用户昵称已存在"),
	EMAIL_EXISTS(false,21021,"用户邮箱已存在"),
	IMG_CODE_ERROR(false,21022,"图形验证码生成错误");

	//响应是否成功
	private Boolean success;
	//状态码
	private Integer code;
	//返回消息
	private String message;

	ResultCodeEnum(Boolean success, Integer code, String message) {
		this.success = success;
		this.code = code;
		this.message = message;
	}
}